<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Agile Modbus: Modbus Function Codes</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Agile Modbus
   &#160;<span id="projectnumber">1.1.4</span>
   </div>
   <div id="projectbrief">Lightweight modbus protocol stack.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group___modbus___function___codes.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle">
<div class="title">Modbus Function Codes<div class="ingroups"><a class="el" href="group___c_o_m_m_o_n.html">Common</a> &raquo; <a class="el" href="group___c_o_m_m_o_n___exported___constants.html">Common Exported Constants</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for Modbus Function Codes:</div>
<div class="dyncontent">
<div class="center"><img src="group___modbus___function___codes.png" border="0" usemap="#agroup______modbus______function______codes" alt=""/></div>
<map name="agroup______modbus______function______codes" id="agroup______modbus______function______codes">
<area shape="rect" href="group___c_o_m_m_o_n___exported___constants.html" title=" " alt="" coords="5,5,217,31"/>
<area shape="rect" title=" " alt="" coords="265,5,441,31"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga1bdaa8903987ab20f825c33f3210ca2e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___modbus___function___codes.html#ga1bdaa8903987ab20f825c33f3210ca2e">AGILE_MODBUS_FC_READ_COILS</a>&#160;&#160;&#160;0x01</td></tr>
<tr class="separator:ga1bdaa8903987ab20f825c33f3210ca2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf91b7348ee4aecc99d14afaa3e03c02b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___modbus___function___codes.html#gaf91b7348ee4aecc99d14afaa3e03c02b">AGILE_MODBUS_FC_READ_DISCRETE_INPUTS</a>&#160;&#160;&#160;0x02</td></tr>
<tr class="separator:gaf91b7348ee4aecc99d14afaa3e03c02b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga51394ef0b9afbc569f7541ab1244f65e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___modbus___function___codes.html#ga51394ef0b9afbc569f7541ab1244f65e">AGILE_MODBUS_FC_READ_HOLDING_REGISTERS</a>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:ga51394ef0b9afbc569f7541ab1244f65e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7771198acca215a378463eb13ad040d1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___modbus___function___codes.html#ga7771198acca215a378463eb13ad040d1">AGILE_MODBUS_FC_READ_INPUT_REGISTERS</a>&#160;&#160;&#160;0x04</td></tr>
<tr class="separator:ga7771198acca215a378463eb13ad040d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4eaf03c1474a3397f847edd94200ec2f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___modbus___function___codes.html#ga4eaf03c1474a3397f847edd94200ec2f">AGILE_MODBUS_FC_WRITE_SINGLE_COIL</a>&#160;&#160;&#160;0x05</td></tr>
<tr class="separator:ga4eaf03c1474a3397f847edd94200ec2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3003e1bab9d1b1da61250ec2dae421cd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___modbus___function___codes.html#ga3003e1bab9d1b1da61250ec2dae421cd">AGILE_MODBUS_FC_WRITE_SINGLE_REGISTER</a>&#160;&#160;&#160;0x06</td></tr>
<tr class="separator:ga3003e1bab9d1b1da61250ec2dae421cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaabbcd5854c34d199f2f707bb3bfb373f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___modbus___function___codes.html#gaabbcd5854c34d199f2f707bb3bfb373f">AGILE_MODBUS_FC_READ_EXCEPTION_STATUS</a>&#160;&#160;&#160;0x07</td></tr>
<tr class="separator:gaabbcd5854c34d199f2f707bb3bfb373f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga437dc2cfaa22f7cfcafdd1f85b5a6955"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___modbus___function___codes.html#ga437dc2cfaa22f7cfcafdd1f85b5a6955">AGILE_MODBUS_FC_WRITE_MULTIPLE_COILS</a>&#160;&#160;&#160;0x0F</td></tr>
<tr class="separator:ga437dc2cfaa22f7cfcafdd1f85b5a6955"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga89ce7e11ea0f593ee6801a0d0dd50f5d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___modbus___function___codes.html#ga89ce7e11ea0f593ee6801a0d0dd50f5d">AGILE_MODBUS_FC_WRITE_MULTIPLE_REGISTERS</a>&#160;&#160;&#160;0x10</td></tr>
<tr class="separator:ga89ce7e11ea0f593ee6801a0d0dd50f5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga890fb2bcf11bb6463e3bc20883c06eee"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___modbus___function___codes.html#ga890fb2bcf11bb6463e3bc20883c06eee">AGILE_MODBUS_FC_REPORT_SLAVE_ID</a>&#160;&#160;&#160;0x11</td></tr>
<tr class="separator:ga890fb2bcf11bb6463e3bc20883c06eee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0ba08a18b715d5dc44b9e8bca79dd149"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___modbus___function___codes.html#ga0ba08a18b715d5dc44b9e8bca79dd149">AGILE_MODBUS_FC_MASK_WRITE_REGISTER</a>&#160;&#160;&#160;0x16</td></tr>
<tr class="separator:ga0ba08a18b715d5dc44b9e8bca79dd149"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7243db4d3adff479a3d4f2a201ece12a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___modbus___function___codes.html#ga7243db4d3adff479a3d4f2a201ece12a">AGILE_MODBUS_FC_WRITE_AND_READ_REGISTERS</a>&#160;&#160;&#160;0x17</td></tr>
<tr class="separator:ga7243db4d3adff479a3d4f2a201ece12a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ga1bdaa8903987ab20f825c33f3210ca2e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1bdaa8903987ab20f825c33f3210ca2e">&#9670;&nbsp;</a></span>AGILE_MODBUS_FC_READ_COILS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define AGILE_MODBUS_FC_READ_COILS&#160;&#160;&#160;0x01</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="agile__modbus_8h_source.html#l00048">48</a> of file <a class="el" href="agile__modbus_8h_source.html">agile_modbus.h</a>.</p>

</div>
</div>
<a id="gaf91b7348ee4aecc99d14afaa3e03c02b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf91b7348ee4aecc99d14afaa3e03c02b">&#9670;&nbsp;</a></span>AGILE_MODBUS_FC_READ_DISCRETE_INPUTS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define AGILE_MODBUS_FC_READ_DISCRETE_INPUTS&#160;&#160;&#160;0x02</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="agile__modbus_8h_source.html#l00049">49</a> of file <a class="el" href="agile__modbus_8h_source.html">agile_modbus.h</a>.</p>

</div>
</div>
<a id="ga51394ef0b9afbc569f7541ab1244f65e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga51394ef0b9afbc569f7541ab1244f65e">&#9670;&nbsp;</a></span>AGILE_MODBUS_FC_READ_HOLDING_REGISTERS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define AGILE_MODBUS_FC_READ_HOLDING_REGISTERS&#160;&#160;&#160;0x03</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="agile__modbus_8h_source.html#l00050">50</a> of file <a class="el" href="agile__modbus_8h_source.html">agile_modbus.h</a>.</p>

</div>
</div>
<a id="ga7771198acca215a378463eb13ad040d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7771198acca215a378463eb13ad040d1">&#9670;&nbsp;</a></span>AGILE_MODBUS_FC_READ_INPUT_REGISTERS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define AGILE_MODBUS_FC_READ_INPUT_REGISTERS&#160;&#160;&#160;0x04</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="agile__modbus_8h_source.html#l00051">51</a> of file <a class="el" href="agile__modbus_8h_source.html">agile_modbus.h</a>.</p>

</div>
</div>
<a id="ga4eaf03c1474a3397f847edd94200ec2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4eaf03c1474a3397f847edd94200ec2f">&#9670;&nbsp;</a></span>AGILE_MODBUS_FC_WRITE_SINGLE_COIL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define AGILE_MODBUS_FC_WRITE_SINGLE_COIL&#160;&#160;&#160;0x05</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="agile__modbus_8h_source.html#l00052">52</a> of file <a class="el" href="agile__modbus_8h_source.html">agile_modbus.h</a>.</p>

</div>
</div>
<a id="ga3003e1bab9d1b1da61250ec2dae421cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3003e1bab9d1b1da61250ec2dae421cd">&#9670;&nbsp;</a></span>AGILE_MODBUS_FC_WRITE_SINGLE_REGISTER</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define AGILE_MODBUS_FC_WRITE_SINGLE_REGISTER&#160;&#160;&#160;0x06</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="agile__modbus_8h_source.html#l00053">53</a> of file <a class="el" href="agile__modbus_8h_source.html">agile_modbus.h</a>.</p>

</div>
</div>
<a id="gaabbcd5854c34d199f2f707bb3bfb373f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaabbcd5854c34d199f2f707bb3bfb373f">&#9670;&nbsp;</a></span>AGILE_MODBUS_FC_READ_EXCEPTION_STATUS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define AGILE_MODBUS_FC_READ_EXCEPTION_STATUS&#160;&#160;&#160;0x07</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="agile__modbus_8h_source.html#l00054">54</a> of file <a class="el" href="agile__modbus_8h_source.html">agile_modbus.h</a>.</p>

</div>
</div>
<a id="ga437dc2cfaa22f7cfcafdd1f85b5a6955"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga437dc2cfaa22f7cfcafdd1f85b5a6955">&#9670;&nbsp;</a></span>AGILE_MODBUS_FC_WRITE_MULTIPLE_COILS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define AGILE_MODBUS_FC_WRITE_MULTIPLE_COILS&#160;&#160;&#160;0x0F</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="agile__modbus_8h_source.html#l00055">55</a> of file <a class="el" href="agile__modbus_8h_source.html">agile_modbus.h</a>.</p>

</div>
</div>
<a id="ga89ce7e11ea0f593ee6801a0d0dd50f5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga89ce7e11ea0f593ee6801a0d0dd50f5d">&#9670;&nbsp;</a></span>AGILE_MODBUS_FC_WRITE_MULTIPLE_REGISTERS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define AGILE_MODBUS_FC_WRITE_MULTIPLE_REGISTERS&#160;&#160;&#160;0x10</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="agile__modbus_8h_source.html#l00056">56</a> of file <a class="el" href="agile__modbus_8h_source.html">agile_modbus.h</a>.</p>

</div>
</div>
<a id="ga890fb2bcf11bb6463e3bc20883c06eee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga890fb2bcf11bb6463e3bc20883c06eee">&#9670;&nbsp;</a></span>AGILE_MODBUS_FC_REPORT_SLAVE_ID</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define AGILE_MODBUS_FC_REPORT_SLAVE_ID&#160;&#160;&#160;0x11</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="agile__modbus_8h_source.html#l00057">57</a> of file <a class="el" href="agile__modbus_8h_source.html">agile_modbus.h</a>.</p>

</div>
</div>
<a id="ga0ba08a18b715d5dc44b9e8bca79dd149"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0ba08a18b715d5dc44b9e8bca79dd149">&#9670;&nbsp;</a></span>AGILE_MODBUS_FC_MASK_WRITE_REGISTER</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define AGILE_MODBUS_FC_MASK_WRITE_REGISTER&#160;&#160;&#160;0x16</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="agile__modbus_8h_source.html#l00058">58</a> of file <a class="el" href="agile__modbus_8h_source.html">agile_modbus.h</a>.</p>

</div>
</div>
<a id="ga7243db4d3adff479a3d4f2a201ece12a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7243db4d3adff479a3d4f2a201ece12a">&#9670;&nbsp;</a></span>AGILE_MODBUS_FC_WRITE_AND_READ_REGISTERS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define AGILE_MODBUS_FC_WRITE_AND_READ_REGISTERS&#160;&#160;&#160;0x17</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="agile__modbus_8h_source.html#l00059">59</a> of file <a class="el" href="agile__modbus_8h_source.html">agile_modbus.h</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
